<!--
  Generated template for the ApprovePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<div class="content_div">
    <div class="suggestion-content">
    <textarea name="answer" placeholder="请输入审批意见" class="textarea"
              maxlength="500" [(ngModel)]="remarkVal"></textarea>
    </div>
    <div class="div-item">
        <div *ngFor="let item of yaosuList;let i=index">
            <ion-item *ngIf="item.QuZhiLX=='1'">
                <ion-label>{{item.YaoSuMC}}</ion-label>
                <ion-input type="text" placeholder="" [(ngModel)]="list[i].YaoSuZ"></ion-input>
            </ion-item>
            <ion-item *ngIf="item.QuZhiLX=='2'">
                <ion-label>{{item.YaoSuMC}}</ion-label>
                <ion-select  okText="确定" cancelText="取消"   placeholder=""  [(ngModel)]="list[i].YaoSuZ" >
                    <ion-option *ngFor="let typeData of item.YaoSuZ" value="{{typeData}}">{{typeData}}</ion-option>
                </ion-select>
            </ion-item>
            <ion-item *ngIf="item.QuZhiLX=='3'">
                <ion-label>
                    {{item.YaoSuMC}}  <ion-checkbox [(ngModel)]="list[i].YaoSuZ"  style="display: inline-flex; vertical-align: middle;"></ion-checkbox>
                </ion-label>
            </ion-item>
        </div>
        <div class="upload" (click)="presentActionSheet()" ><p>上传附件</p></div>
        <div style="width: 93%;margin: 0 auto">
            <img *ngFor="let item of fileList" [src]="item.FuJianLJ" style="width: 100px;height: 120px">
            <!--<p *ngFor="let item of fileList" style="color: #666666" ><span>附件名称:</span>&nbsp;&nbsp;{{item.FuJianMC}}</p>-->
        </div>
    </div>
    <ion-item (click)="approverHander()" *ngIf="isHQBool">
        <ion-label>会签人
            <span class="input_span">{{hqName}}</span>
        </ion-label>
        <img style="width: 8px" src="assets/imgs/icon-right arrow@2x.png" item-end/>
    </ion-item>
    <div class="buttonDiv" *ngIf="checkType !='1'">
        <button ion-button (click)="getCheckInfo('back')">退回</button>
        <button ion-button (click)="getCheckInfo('pass')">审核通过</button>

    </div>
</div>
